
.o_preview_viewerjs,
.o_preview_viewerjs iframe {
	position: absolute;
	width: 100%;
	height: 100%;
}

.o_preview_pdfjs,
.o_preview_pdfjs iframe {
	position: absolute;
	width: 100%;
	height: 100%;
}

.o_preview_image {
	position: absolute;
	display: flex;
	height: 100%;
	width: 100%;
}

.o_preview_image img {
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}

.iv-container {
	z-index: 9999 ! important;
}

.o_preview_excel {
	position: absolute;
	width: 100%;
	height: 100%;

    .excel-container {
		//display: none;
		width: 100%;
		height: 100%;
		padding: 0 10px 0 10px;

		.tab-line {
			width: 100%;
    		height: 100%;
		}

		.tab-line > .nav-tabs {
			height: 42px;
			border: none;
			margin: 0px;
		}

		.tab-line > .nav-tabs > li {
			margin-right: 2px;
		}

		.tab-line > .nav-tabs > li > a {
			border: 0;
			margin-right: 0;
			color: $gray-300;
		}

		.tab-line > .nav-tabs > li > a > span {
			padding-left: 5px;
		}

		.tab-line > .nav-tabs > li > a > i {
			font-size: 15px;
		}

		.tab-line > .nav-tabs > li.open,
		.tab-line > .nav-tabs > li:hover {
			border-bottom: 4px solid  lighten($o-brand-primary, 20%);
		}

		.tab-line > .nav-tabs > li.open > a,
		.tab-line > .nav-tabs > li:hover > a {
			border: 0;
			color: $gray-600;
			background: none ! important;
		}

		.tab-line > .nav-tabs > li.open .dropdown-menu,
		.tab-line > .nav-tabs > li:hover .dropdown-menu {
			margin-top: 0px;
		}

		.tab-line > .nav-tabs > li.active {
			position: relative;
			border-bottom: 4px solid $o-brand-primary;
		}

		.tab-line > .nav-tabs > li.active > a {
			border: 0;
			color: $gray-400;
		}

		.tab-line > .tab-content {
			position: absolute;
    		top: 45px;
			border: 0;
			border-top: 1px solid #eee;
			margin-top: -3px;
			padding: 3px 0 0 0;
			height: calc(100% - 45px);
			width: calc(100% - 20px);
		}

		.table-container {
			position: relative;
			height: 100%;
			width: 100%;
			overflow: hidden;
		}
    }
}

.o_preview_unsupported {
	padding: 20px 30px 20px 30px;
	
	.o_preview_unsupported_body {
		padding-top: 25px;
	}
	
	.o_preview_unsupported_info {
		padding-bottom: 15px;
	}
	
	.o_preview_unsupported_icon {
		padding-top: 15px;
	}
	
	.o_preview_unsupported_table > tbody > tr {
		border-top: 1px solid rgb(221, 221, 221);
	}

	.o_preview_unsupported_table > tbody > tr:first-child {
		border-top: 0;
	}

	.o_preview_unsupported_table > tbody > tr > td {
		border-top: 0;
	}
	
	.o_preview_unsupported_download {
		padding-top: 25px;
		padding-bottom: 5px;
	}
}

/* Based on a CodePen Snippet by Dave McCarthy */
.loader {
	height: 20px;
	width: 250px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	
	.loader--dot {
		animation-name: loader;
		animation-timing-function: ease-in-out;
		animation-duration: 3s;
		animation-iteration-count: infinite;
		height: 20px;
		width: 20px;
		border-radius: 100%;
		background-color: black;
		position: absolute;
		border: 2px solid white;
	}

	.loader--dot:first-child {
		background-color: #8cc759;
		animation-delay: 0.5s;
	}

	.loader--dot:nth-child(2) {
		background-color: #8c6daf;
		animation-delay: 0.4s;
	}

	.loader--dot:nth-child(3) {
		background-color: #ef5d74;
		animation-delay: 0.3s;
	}

	.loader--dot:nth-child(4) {
		background-color: #f9a74b;
		animation-delay: 0.2s;
	}

	.loader--dot:nth-child(5) {
		background-color: #60beeb;
		animation-delay: 0.1s;
	}

	.loader--dot:nth-child(6) {
		background-color: #fbef5a;
		animation-delay: 0s;
	}

	.loader--text {
		position: absolute;
		top: 200%;
		left: 0;
		right: 0;
		width: 4rem;
		margin: auto;
	}

	.loader--text:after {
		content: "Loading";
		font-weight: bold;
		animation-name: loading-text;
		animation-duration: 3s;
		animation-iteration-count: infinite;
	}

	@keyframes loader {
		15% {
			transform: translateX(0);
		}

		45% {
			transform: translateX(230px);
		}

		65% {
			transform: translateX(230px);
		}

		95% {
			transform: translateX(0);
		}
	}

	@keyframes loading-text {
		0% {
			content: "Loading";
		}

		25% {
			content: "Loading.";
		}

		50% {
			content: "Loading..";
		}

		75% {
			content: "Loading...";
		}
	}
}
